package com.auction.common.dao.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("返回结果")
public class PageResult<T> {

    @ApiModelProperty("当前第几页")
    int page;

    @ApiModelProperty("每页记录数")
    int pageSize;

    @ApiModelProperty("总记录数")
    long total;

    @ApiModelProperty("数据")
    List<T> list;
}
